<template>
	<view >
		<view >
                <image style="width: 100%;height: 100%;"  src="../../static/welcome.png" mode="widthFix"></image>
		</view>
	</view>
</template>

<script>
	import {openComDB,closeComDB,executeSQL} from '../../common/sqlite.js'
	import data from '../../common/data.js'
	export default {
		onLoad() {
			this.initHome()
		},
		mounted() {
			
		},
		data() {
			return {
				
			}
		},
		methods: {
			initHome:function(){
			let user=uni.getStorageSync('userKey')
			if(user.id!=undefined&&user.id!=null&&user.id!=''){
				uni.switchTab({
					url: '/pages/index/chat/chat',
					animationType: 'pop-in',
					animationDuration: 200
				}); 
			}else{
				uni.reLaunch({
					url: '/pages/index/index',
					animationType: 'pop-in',
					animationDuration: 200
				})
			}
		  },
		}
	}
</script>

<style>

</style>
